﻿using System;
using System.Linq;
using System.Collections.Generic;
using Microsoft.Practices.ServiceLocation;
using NCommon.Data;

namespace MyPetShop.Domain
{
	/// <summary>
	/// Description of Item.
	/// </summary>
	public class Item
	{
		public virtual int ItemId { get;set;}
		public virtual string Description {get;set;}
		public virtual int Quantity { get;set;}
		public virtual decimal ListPrice {get;set;}
		public virtual bool IsDelete{get;protected set;}
		public virtual Product Product {get;set;}
		
		public Item()
		{
		}
		
		public virtual void Delete()
		{
			IsDelete = true;
		}

        public virtual void Decrease(int quantity)
        {
            Quantity -= quantity;
        }
    }
}
